<template>
  <div class="news-section domestic">
    <h2>国内新闻</h2>
    
    <div class="news-list">
      <div class="news-item">
        <div class="news-image">
          <img src="https://picsum.photos/seed/domestic1/300/200" alt="国内新闻配图">
        </div>
        <div class="news-content">
          <h3>国家重大科技项目取得突破性进展</h3>
          <p>我国在人工智能领域的核心技术研究取得重大突破，相关成果已达到国际领先水平，将为产业升级和经济发展注入新动力。该项目团队经过五年攻关，成功突破多项技术瓶颈...</p>
          <div class="news-meta">
            <span>2024-05-18</span>
            <span>来源：科技日报</span>
          </div>
        </div>
      </div>
      
      <div class="news-item">
        <div class="news-image">
          <img src="https://picsum.photos/seed/domestic2/300/200" alt="国内经济新闻配图">
        </div>
        <div class="news-content">
          <h3>多地出台新政策促进消费市场复苏</h3>
          <p>随着一系列促消费政策的落地实施，国内消费市场呈现稳步回升态势。数据显示，上月社会消费品零售总额同比增长5.2%，线上消费占比持续提升，消费结构不断优化...</p>
          <div class="news-meta">
            <span>2024-05-17</span>
            <span>来源：经济参考报</span>
          </div>
        </div>
      </div>
      
      <div class="news-item">
        <h3>全国生态环境保护大会在京召开</h3>
        <p>会议强调要持续推进生态文明建设，统筹污染治理、生态保护、应对气候变化，推动我国生态环境保护工作再上新台阶...</p>
        <div class="news-meta">
          <span>2024-05-16</span>
          <span>来源：人民日报</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
</script>

<style scoped>
.news-section {
  background-color: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-section h2 {
  color: #fff;
  background-color: #2c3e50;
  padding: 10px 15px;
  margin: 0 0 20px 0;
  display: inline-block;
  border-radius: 4px;
  font-size: 20px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.news-item:last-child {
  border-bottom: none;
}

.news-image {
  width: 300px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-image img:hover {
  transform: scale(1.05);
}

.news-content h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #333;
  transition: color 0.2s;
}

.news-content h3:hover {
  color: #2c3e50;
}

.news-content p {
  margin: 0 0 10px 0;
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

.news-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  
  .news-image {
    width: 100%;
    height: auto;
  }
}
</style>
    